<%--
  Created by IntelliJ IDEA.
  User: tians
  Date: 2022/8/14
  Time: 22:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link href="css/login.css" rel="stylesheet">
</head>
<body>
    <div id="loginDiv" style="height: 350px">
        <form action="/loginServlet" id="form">
            <h1 id="loginMsg">LOGIN IN</h1>
            <div id="errorMsg" style="color: red">${login_msg} ${register_msg}</div>
            <p>Username:<input id="username" name="username"  value="${cookie.username.value}" type="text"></p>

            <p>Password:<input id="password" name="password"  value="${cookie.password.value}" type="password"></p>
<%--            "1"表示被勾选--%>
            <p>Remember:<input id="remember" name="remember" value="1" type="checkbox"></p>
            <div id="subDiv">
                <input type="submit" class="button" value="login up">
                <input type="reset" class="button" value="reset">&nbsp;&nbsp;&nbsp;
                <a href="/register.jsp">没有账号？</a>
            </div>
        </form>
    </div>
</body>
</html>
